using System;
using WebService.ServiceImplementation.PokerGameService;
using WebService.DataContracts;

namespace WebService.ServiceImplementation
{
    public static class TranslateBetweenPokerRoomOptionsAndPokerRoomOptions
    {
        public static WebService.ServiceImplementation.PokerGameService.PokerRoomOptions TranslatePokerRoomOptionsToPokerRoomOptions(WebService.DataContracts.PokerRoomOptions from)
        {
            WebService.ServiceImplementation.PokerGameService.PokerRoomOptions to = new WebService.ServiceImplementation.PokerGameService.PokerRoomOptions();
            to.MaximumPlayers = from.MaximumPlayers;
            to.MaximumBetMultiplicity = from.MaximumBetMultiplicity;
            to.Blind = from.Blind;
            to.BlindMultiplicity = from.BlindMultiplicity;
            return to;
        }

        public static WebService.DataContracts.PokerRoomOptions TranslatePokerRoomOptionsToPokerRoomOptions(WebService.ServiceImplementation.PokerGameService.PokerRoomOptions from)
        {
            WebService.DataContracts.PokerRoomOptions to = new WebService.DataContracts.PokerRoomOptions();
            to.MaximumPlayers = from.MaximumPlayers;
            to.MaximumBetMultiplicity = from.MaximumBetMultiplicity;
            to.Blind = from.Blind;
            to.BlindMultiplicity = from.BlindMultiplicity;
            return to;
        }
    }
}

